/*
 * @Author: windys
 * @Description: 
 * @Date: 2022-02-16 11:20:36
 */
import { defineStore } from "pinia";

export const useStore = defineStore({
    id: "caihu",

    state: () => ({
        MGS_LIST: [],//直播消息
        SHOW_RECHARGE:false,//充值
    }),


    actions: {
        addMsgList(data) {
            this.MGS_LIST = this.MGS_LIST.concat(data)
        },
        openRecharge(){
            this.SHOW_RECHARGE = true
        },
        closeRecharge(){
            this.SHOW_RECHARGE = false
        }
    }
});